package com.company.cloud.goodsrestservice.model;

import javax.persistence.*;

@Table(name = "sku_stock")
public class Stock {
    /**
     * ID
     */
    @Id
    @Column(name = "stock_id")
    private Integer stockId;

    /**
     * 货位
     */
    @Column(name = "stock_location")
    private String stockLocation;

    @Column(name = "sku_id")
    private Integer skuId;

    @Column(name = "stock_number")
    private Integer stockNumber;

    /**
     * 锁库存的数量
     */
    @Column(name = "stock_lock")
    private Integer stockLock;

    /**
     * 0=未知 1=货单 2=moss
     */
    @Column(name = "stock_type")
    private Integer stockType;

    /**
     * 箱号
     */
    @Column(name = "stock_case_number")
    private String stockCaseNumber;

    /**
     * 货位ID
     */
    @Column(name = "stock_location_id")
    private Integer stockLocationId;

    /**
     * 获取ID
     *
     * @return stock_id - ID
     */
    public Integer getStockId() {
        return stockId;
    }

    /**
     * 设置ID
     *
     * @param stockId ID
     */
    public void setStockId(Integer stockId) {
        this.stockId = stockId;
    }

    /**
     * 获取货位
     *
     * @return stock_location - 货位
     */
    public String getStockLocation() {
        return stockLocation;
    }

    /**
     * 设置货位
     *
     * @param stockLocation 货位
     */
    public void setStockLocation(String stockLocation) {
        this.stockLocation = stockLocation;
    }

    /**
     * @return sku_id
     */
    public Integer getSkuId() {
        return skuId;
    }

    /**
     * @param skuId
     */
    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    /**
     * @return stock_number
     */
    public Integer getStockNumber() {
        return stockNumber;
    }

    /**
     * @param stockNumber
     */
    public void setStockNumber(Integer stockNumber) {
        this.stockNumber = stockNumber;
    }

    /**
     * 获取锁库存的数量
     *
     * @return stock_lock - 锁库存的数量
     */
    public Integer getStockLock() {
        return stockLock;
    }

    /**
     * 设置锁库存的数量
     *
     * @param stockLock 锁库存的数量
     */
    public void setStockLock(Integer stockLock) {
        this.stockLock = stockLock;
    }

    /**
     * 获取0=未知 1=货单 2=moss
     *
     * @return stock_type - 0=未知 1=货单 2=moss
     */
    public Integer getStockType() {
        return stockType;
    }

    /**
     * 设置0=未知 1=货单 2=moss
     *
     * @param stockType 0=未知 1=货单 2=moss
     */
    public void setStockType(Integer stockType) {
        this.stockType = stockType;
    }

    /**
     * 获取箱号
     *
     * @return stock_case_number - 箱号
     */
    public String getStockCaseNumber() {
        return stockCaseNumber;
    }

    /**
     * 设置箱号
     *
     * @param stockCaseNumber 箱号
     */
    public void setStockCaseNumber(String stockCaseNumber) {
        this.stockCaseNumber = stockCaseNumber;
    }

    /**
     * 获取货位ID
     *
     * @return stock_location_id - 货位ID
     */
    public Integer getStockLocationId() {
        return stockLocationId;
    }

    /**
     * 设置货位ID
     *
     * @param stockLocationId 货位ID
     */
    public void setStockLocationId(Integer stockLocationId) {
        this.stockLocationId = stockLocationId;
    }
}